package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ConditionInformationItemList {

    private int beginIndex;
    private int endIndex;
    private List<ConditionInformationItem> conditionInformationItemList;

    public ConditionInformationItemList(List<ConditionInformationItem> conditionInformationItemList) {
        this.beginIndex = beginIndex;
        this.endIndex = conditionInformationItemList.get(conditionInformationItemList.size() - 1).getEndIndex();
        this.conditionInformationItemList = conditionInformationItemList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return conditionInformationItemList.size();
    }

    public ConditionInformationItem get(int index) {
        return conditionInformationItemList.get(index);
    }

}
